package com.example.pest.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 用户预约表
 * @TableName xx_user_reservation
 */
@Data
@TableName(value ="xx_user_reservation")
public class XxUserReservation implements Serializable {
    /**
     * 预约ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 自习室号
     */
    private Long roomId;

    private String dateKey;

    private String timeSpan;

    /**
     * 预约时间
     */
    private Long createTime;

    private long rid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}